<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>龙窝</title>

<link rel="icon" href="/dogshop/Public/img/008.jpg">
<link href="/dogshop/Public/css/bootstrap.min.css" rel="stylesheet">
<link href="/dogshop/Public/css/datepicker3.css" rel="stylesheet">
<link href="/dogshop/Public/css/styles.css" rel="stylesheet">

<!--[if lt IE 9]>
<script src="/dogshop/Public/js/html5shiv.js"></script>
<script src="/dogshop/Public/js/respond.min.js"></script>
<![endif]-->
	<style>
		*{
			font-family: 微软雅黑;
		}
	</style>
</head>

<body>
	<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
		<div class="container-fluid">
			<div class="navbar-header">
				<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#sidebar-collapse">
					<span class="sr-only">Toggle navigation</span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
					<span class="icon-bar"></span>
				</button>

				<a class="navbar-brand" href="#">龙窝管理系统 <span style="color: white;font-size: 70%">-v1.0</span></a>
				<ul class="user-menu">
					<li class="dropdown pull-right">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span> <?php
 echo $_SESSION['admin']['user']; ?><span class="caret"></span></a>
						<ul class="dropdown-menu" role="menu">
							<!--<li><a href="#"><span class="glyphicon glyphicon-user"></span> Profile</a></li>-->
							<li><a href="<?php echo U('Home/Login/changePW');?>"><span class="glyphicon glyphicon-cog"></span> 修改管理员密码</a></li>
							<li><a href="<?php echo U('Home/Index/out');?>"><span class="glyphicon glyphicon-log-out"></span> 退出</a></li>
						</ul>
					</li>
				</ul>
			</div>
		</div><!-- /.container-fluid -->
	</nav>

	<div id="sidebar-collapse" class="col-sm-3 col-lg-2 sidebar">
		<!--<form role="search">-->
			<!--<div class="form-group">-->
				<!--<input type="text" class="form-control" placeholder="Search">-->
			<!--</div>-->
		<!--</form>-->
		<ul class="nav menu" style="color: black">
			<li><a href="<?php echo U('Home/Index/index');?>"><span class="glyphicon glyphicon glyphicon-home"></span>  主页</a></li>
			<li><a href="<?php echo U('Home/List/index');?>"><span class="glyphicon glyphicon-th"></span> 宠物信息管理</a></li>
			<li class="parent ">
				<a href="<?php echo U('Home/Vip/index');?>">
					<span class="glyphicon glyphicon-list"></span> 会员管理 <span style="color: red;font-size: 80%;"><?php echo ($num); ?>位</span><span data-toggle="collapse" href="#sub-item-1" class="icon pull-right"><em class="glyphicon glyphicon-s glyphicon-plus"></em></span>
				</a>
				<ul class="children collapse" id="sub-item-1">
					<!--<li>-->
						<!--<a class="" href="#">-->
							<!--<span class="glyphicon glyphicon-share-alt"></span> 结算-->
						<!--</a>-->
					<!--</li>-->
				</ul>
			</li>
			<li role="presentation" class="divider"></li>
			<li><a href="<?php echo U('Home/Act/index');?>"><span class="glyphicon glyphicon-upload"></span> 记录</a></li>
		</ul>
	</div><!--/.sidebar-->
	<div class="col-sm-9 col-sm-offset-3 col-lg-10 col-lg-offset-2 main">
			

<div class="row">
    <ol class="breadcrumb">
        <li><a href="<?php echo U('Home/Index/index');?>"><span class="glyphicon glyphicon-home"></span></a></li>
        <li class="active">信息概览</li>
    </ol>
</div><!--/.row-->

<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">信息概览</h1>
    </div>
</div>
<div class="row">
    <div class="col-xs-12 col-md-6 col-lg-3">
        <div class="panel panel-blue panel-widget ">
            <div class="row no-padding">
                <div class="col-sm-3 col-lg-5 widget-left">
                    <em class="glyphicon glyphicon-user glyphicon-l"></em>
                </div>
                <div class="col-sm-9 col-lg-7 widget-right">
                    <div class="large"><?php echo ($num); ?> 位</div>
                    <div class="text-muted">总会员数</div>
                </div>
            </div>
        </div>
    </div>
</div><!--/.row-->
<div class="col-md-5">

    <div class="panel panel-blue">
        <div class="panel-heading dark-overlay" style="background: red"><span class="glyphicon glyphicon-check"></span>今日收入</div>
        <div class="panel-body" style="overflow: auto;height: 300px;background: white">
            <ul class="todo-list">
                <?php if(is_array($mes)): $i = 0; $__LIST__ = $mes;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><li class="todo-list-item">
                    <div class="checkbox" style="color: blue">
                        <input type="checkbox" id="checkbox"/>
                        <label for="checkbox"><?php echo ($vo['mes_message']); ?> </label>
                    </div>
                    <div class="pull-right action-buttons">
                        <span style="font-size: 80%;color: red;"><?php echo date("Y年m月d日 H时s分", $vo['mes_time'] ) ?></span>
                        <a href="<?php echo U('Home/Index/del',['id'=>$vo['mes_id']]);?>" class="trash"><span class="glyphicon glyphicon-trash"></span></a>
                    </div>
                </li><?php endforeach; endif; else: echo "" ;endif; ?>
            </ul>
        </div>
        <form action="" method="post">
        <div class="panel-footer">
            <div class="input-group">
                <input id="btn-input" type="text" name="mes" class="form-control input-md" placeholder="添加事项"/>
                <span class="input-group-btn">
								<button class="btn btn-primary btn-md" style="background: red;border: 1px red" type="submit" id="btn-todo">添加</button>
							</span>
            </div>
        </div>
        </form>
    </div>

</div><!--/.col-->

	</div>

	<script src="/dogshop/Public/js/jquery-1.11.1.min.js"></script>
	<script src="/dogshop/Public/js/bootstrap.min.js"></script>
	<script src="/dogshop/Public/js/chart.min.js"></script>
	<script src="/dogshop/Public/js/chart-data.js"></script>
	<script src="/dogshop/Public/js/easypiechart.js"></script>
	<script src="/dogshop/Public/js/easypiechart-data.js"></script>
	<script src="/dogshop/Public/js/bootstrap-datepicker.js"></script>
	<script>
		$('#calendar').datepicker({
		});

		!function ($) {
		    $(document).on("click","ul.nav li.parent > a > span.icon", function(){
		        $(this).find('em:first').toggleClass("glyphicon-minus");
		    });
		    $(".sidebar span.icon").find('em:first').addClass("glyphicon-plus");
		}(window.jQuery);

		$(window).on('resize', function () {
		  if ($(window).width() > 768) $('#sidebar-collapse').collapse('show')
		})
		$(window).on('resize', function () {
		  if ($(window).width() <= 767) $('#sidebar-collapse').collapse('hide')
		})
	</script>
</body>

</html>